package com.zyj.java1;

/**
 * @program: JVMDemo
 * @ClassName OperandStackTest
 * @author: YaJun
 * @Date: 2021 - 12 - 07 - 16:43
 * @Package: com.zyj.java1
 * @Description:
 */
public class OperandStackTest {

    public void t1() {
        int i = 10;
        int j = 20;
        int k = i + j;
    }

    public void add() {

        // 第一类问题
        int i1 = 10;
        i1++;

        int i2 = 10;
        i2++;

        // 第二类问题
        int i3 = 10;
        int i4 = i3++;

        int i5 = 10;
        int i6 = ++i5;

        // 第三类问题
        int i7 = 10;
        i7 = i7++;

        int i8 = 10;
        i8 = ++i8;

        // 第四类问题
        int i9 = 10;
        int i10 = i9++ + ++i9;

    }

}
